extends Node

class_name C_Inventory

signal item_changed

@export var num = 10

var items : Array[Item] = []

func add_item(loadpath : String):
	if not ResourceLoader.exists(loadpath):
		push_error("找不到道具的路径")
		return
	var item : Item = load(loadpath).duplicate()
	items.append(item)
	item_changed.emit()
